/*
 * RacesCard.cpp
 *
 *  Created on: 2011-1-13
 *      Author: Administrator
 */

#include "RacesCard.h"

CRacesCard::CRacesCard()
	{
	iDate = NULL;
	}

CRacesCard::~CRacesCard()
	{
	delete iDate;
	iDate = NULL;
	iRaces.ResetAndDestroy();
	}

void CRacesCard::setDateL(const TDesC& aDate)
	{
	delete iDate;
	iDate = NULL;
	iDate = aDate.AllocL();
	}

const TDesC& CRacesCard::Date()
	{
	if (iDate)
		return *iDate;
	return KNullDesC;
	}
